package me.hl.logback;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * author: planck
 * createTime: 2016/8/19.
 */
public class LoggerTest {

    public static Logger logger = LoggerFactory.getLogger(LoggerTest.class);

    @Test
    public void outTest() {
        while (true) {
            try {
                Date date = new Date();
                logger.debug("{}", date);
                logger.info("{}", date);
                logger.error("{}", date);
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
